<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css" />
<body class="m_6">
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="tab_m ">
  <tr>
    <td colspan="2" class="bg1">栏目主分类设置</td>
  </tr>
  <tr>
    <td class="ml_add left" colspan="2" ><a href="${ctx}/title/title!preCreate.action" target="mright">增加栏目主分类</a></td>
  </tr>
 <s:iterator value="titles" status="title">
  <tr>
    <td class="w1"><div class="cd_img"><img src="${ctx}/images/menu/data.gif"/></div>${titleCode}${titleName }</td>
    <td class="w2">
    <span onclick=" modifyMenu('${titleId}');" style="cursor: pointer;">编辑</span>
     <a href="${ctx}/title/title_manageSub.action?title.titleId=${titleId}" target="mright">下一级</a> 
     </td>
  </tr>
  </s:iterator>
</table>
</body>
</html>
<script type="text/javascript">
function modifyMenu(titleId){
  parent.frames['mright'].location = "${ctx}/title/title!preModify.action?title.titleId="+titleId;
}

function deleteTitle(titleId){
  if(window.confirm('确定要删除该栏目节点吗?')){
  		parent.frames['mright'].location = "${ctx}/title/title_delete.action?title.titleId="+titleId;
  		 parent.frames['mleft'].location = "${ctx}/title/title_left.action";
  }
  
}

</script>
